class CreateWorkItemTypes < ActiveRecord::Migration
  def self.up
    create_table :work_item_types do |t|
      t.string :name
      t.integer :position
      t.text :remark
      t.timestamps
    end

    create_table :stages_work_item_types, :id => false do |t|
      t.integer :work_item_type_id,
        :stage_id
    end
  end

  def self.down
    drop_table :work_item_types
    drop_table :stages_work_item_types
  end
end
